package com.saodisheng.service;

import com.jfinal.plugin.activerecord.Page;
import com.saodisheng.model.Posts;

/**
 * description:
 *
 * @author 扫地生_saodisheng
 * @date 2022/1/28
 */
public interface SearchService{
	/**
	 * 根据关键字搜索文章
	 * @param keyWord
	 * @param pageNum
	 * @return
	 */
	Page<Posts> searchPosts(String keyWord, int pageNum);

	int getSearchNum(String keyWord);
}
